package com.pine.app.module.security.oauth.config.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaoyuan
 * @create 2020/3/9 17:24
 **/
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = OAuth2SsoProperties.OAUTH_PROPERTIES)
public class OAuth2SsoProperties {

    public static final String OAUTH_PROPERTIES = "pine.oauth.sso";
    //默认登陆地址
    public static final String DEFAULT_LOGIN_PATH = "/login";
    /**
     * 客户段id
     */
    private  String client_id;
    /**
     * 客户端密钥
     */
    private  String client_secret;
    /**
     *  token地址
     */
    private  String access_token_uri;
    /**
     *  授权模式
     */
    private  String grant_type;
    /**
     * token校验地址
     */
    private  String access_token_validate_uri;
    /**
     *   授权地址
     */
    private  String user_authorization_uri;
    /**
     *  用户信息地址
     */
    private  String  use_current_uri;
    /**
     *  单点登陆跳转地址
     */
    private String loginPath = "/login";
}
